﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Workflow2211A.Domain.Entities
{
    /// <summary>
    /// 审批表
    /// </summary>
    [Table("Audit")]
    public class AuditModel:BaseEntity
    {
        /// <summary>
        /// 当前审批的步骤
        /// </summary>
        [Required]

        public string StepId { get; set; }
        /// <summary>
        /// 当前审批的步骤名称
        /// </summary>
        [MaxLength(100),Required]
        public string StepName { get; set; }
        /// <summary>
        /// 当前步骤审批人
        /// </summary>
        [Required]
        public long AuditUserId { get; set; }
        /// <summary>
        /// 当前步骤审批人名称
        /// </summary>
        [MaxLength(100), Required]
        public string AuditUserName { get; set; }
        /// <summary>
        /// 是否代办
        /// </summary>
        public bool Status { get; set; }
        /// <summary>
        /// 通过/驳回/催办/代办/抄送/转办/销毁
        /// </summary>
        [MaxLength(100), Required]
        public string OprationType { get; set; } = null!;

        /// <summary>
        /// 当前执行节点
        /// </summary>
        [MaxLength(100), Required]
        public string ExecutionPointerId { get; set; } = null!;
        /// <summary>
        /// 审批意见
        /// </summary>
        [MaxLength(100),Required]
        public string Remark { get; set; } = null!;

        /// <summary>
        /// 流程实例ID
        /// </summary>
        [MaxLength(100),Required]
        public string WorkflowId { get; set; }
    }
}
